package com.son.hotel.common;


public enum ErrorCode {
    SUCCESS("200","请求成功","请求成功"),
    PARAMETER_ERROR("400","参数错误","传入的参数出现错误"),
    NULL_ERROR("401","参数为空","传入的参数为空"),
    SYSTEM_ERROR("500","系统错误","");

    private String code;
    private String message;
    private String description;

    ErrorCode(String code,  String message ,String description) {
        this.code = code;
        this.message = message;
        this.description = description;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }
}
